# -*- coding: utf-8 -*-
from datetime import datetime
now = datetime.now()
print(now)
print(type(now))
dt = datetime.now()
print(datetime.fromtimestamp(dt.timestamp()))
str = '2019-03-12 14:33:33'
print(datetime.strptime(str,"%Y-%d-%m %H:%M:%S"))
print(dt.strftime("%Y-%d-%m %H:%M:%S"))